<#include "../common/constant.ftl" />
<title>提现列表</title>
<form class="form-horizontal" role="form" id="validation-form" method="POST" action="${ctx}/admin/moneyLog/list${suffix}" onsubmit="return fromSearch(this)">
	姓名:<input type="input" name="name" value="${pager.searchMap.title!''}" id="title"/>
	<button class="btn btn-minier btn-success" type="submit"><i class="fa fa-search"></i>搜  索</button>
</form>
<div class="hr hr-5"></div>
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th class="center" width="5%">编号</th>
						<th class="center" width="9%">姓名</th>
						<th class="center" width="8%">手机号</th>
						<th class="center" width="8%">总资产</th>
						<th class="center" width="10%">可用余额</th>
						<th class="center" width="10%">冻结金额</th>
						<th class="center" width="10%">累计提现金额</th>
						<th class="center" width="10%">本次提现金额</th>
						<th class="center" width="9%">状态</th>
						<th class="center" width="12%">申请时间</th>
						<th class="center" width="16%">操作人/时间</th>
						<th class="center">操作</th>
					</tr>
				</thead>
				<tbody>
				<#list pager.itemList as moneyLog>
					<tr>
						<td class="center">${moneyLog_index+1}</td>
						<td class="center">${moneyLog.collocationExt.contact!""}</td>
						<td class="center">${moneyLog.collocationExt.contact!""}</td>
						<td class="center">${tagUtils.fromatMoney(moneyLog.collocationExt.allInComeMoney!'0')}</td>
						<td class="center">${tagUtils.fromatMoney(moneyLog.collocationExt.totalMoney!'0')}</td>
						<td class="center">${tagUtils.fromatMoney(moneyLog.collocationExt.freezeMoney!'0')}</td>
							<td class="center">${tagUtils.fromatMoney(moneyLog.collocationExt.outlayMoney!'0')}</td>
						<td class="center">${tagUtils.fromatMoney(moneyLog.money!'0')}元</td>
						<td class="center">
						<#if moneyLog.status== 1>待处理<#elseif moneyLog.status== 2>已转账<#else>信息有误</#if></td>
						<td class="center">${tagUtils.formatDate(moneyLog.createTime!'0')}</td>
						<td class="center"><#if moneyLog.status!=1>${moneyLog.adminUser.userName}<br>${tagUtils.formatDate(moneyLog.auditTime!'0')}</#if></td>
						<td class="center">
						<div class="btn-group center">
									<button data-toggle="dropdown" class="btn btn-warning dropdown-toggle">
											操作列表
									</button>
									<ul class="dropdown-menu dropdown-warning"  style="width: 100%;min-width: auto;">
										<#if  moneyLog.status== 1>
										<li>
											<a href="${ctx}/admin/moneyLog/${moneyLog.id}/doAudit${suffix}?resutCode=pass">
											<i class="list icon-check"></i>已转入账
											</a>
										</li>
									
										<li>
											<a href="${ctx}/admin/moneyLog/${moneyLog.id}/doAudit${suffix}?resutCode=fail">
											<i class="list icon-check"></i>信息有误
											</a>
										</li>
											
										</#if>
									</ul>
							</div>
						</td>
					</tr>
				</#list>
				</tbody>
			</table>
		</div><!-- /.table-responsive -->
		
		<div class="hr hr-18 dotted hr-double"></div>
		<@h.page pager=pager action="${ctx}/admin/moneyLog/list${suffix}" />
	</div><!-- /span -->
</div><!-- /row -->

<script>

function doCollocationState(checkbox, uid) {
	var str ;
	if(checkbox.checked == true){
		str ="启用";
		checkbox.checked = false;
	}else{
		str = "禁用";
		checkbox.checked = true;
	}
 	if(confirm("确定要"+str+"该用户吗？")){
 		var href = ctx + "/admin/collocation/" + uid +"/checkState";
		window.location.href = href;
 	}
}

function fromSearch(f){
	if(f.informationTypeId.value) {
		f.pager.value += "$$informationTypeId--" + f.informationTypeId.value;
	}
	if(f.title.value){
		f.pager.value += "$$title--" + f.title.value;
	}
	location.href = f.action + "?pager=" + f.pager.value;
	return false;
}

$(document).ready(function(){


$(document).ready(function(){
	RP.addBreadcrumb([{name:"搭配师列表", linkUrl:"${ctx}/admin/collocation/list${suffix}", active: true}]);
	<!--RP.Breadcrumbs.add("${ctx}/admin/collocation/add${suffix}","添加搭配师")-->
});
});
</script>
